package com.mriassl.feign.service;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.mriassl.feign.domain.User;

@FeignClient("user-service")
public interface UserService {

	@GetMapping("/hello")
	public String helloServie();

	@GetMapping("/user")
	public User findById(@RequestParam("id")String id);

	@GetMapping("/users")
	public List<User> findByIds(@RequestParam("ids")List<String> ids);

}
